/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entidades;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author dvasquez
 */
@Entity
@Table(name = "informeReferenciaDCAr")
@NamedQueries({@NamedQuery(name = "InformeReferenciaDCAr.findAll", query = "SELECT i FROM InformeReferenciaDCAr i"), @NamedQuery(name = "InformeReferenciaDCAr.findByNroInfReferencia", query = "SELECT i FROM InformeReferenciaDCAr i WHERE i.informeReferenciaDCArPK.nroInfReferencia = :nroInfReferencia"), @NamedQuery(name = "InformeReferenciaDCAr.findById", query = "SELECT i FROM InformeReferenciaDCAr i WHERE i.informeReferenciaDCArPK.id = :id"), @NamedQuery(name = "InformeReferenciaDCAr.findByDRRef", query = "SELECT i FROM InformeReferenciaDCAr i WHERE i.dRRef = :dRRef"), @NamedQuery(name = "InformeReferenciaDCAr.findByNroSueloInf", query = "SELECT i FROM InformeReferenciaDCAr i WHERE i.nroSueloInf = :nroSueloInf"), @NamedQuery(name = "InformeReferenciaDCAr.findByDensidadRelativa", query = "SELECT i FROM InformeReferenciaDCAr i WHERE i.densidadRelativa = :densidadRelativa"), @NamedQuery(name = "InformeReferenciaDCAr.findByPMoPS", query = "SELECT i FROM InformeReferenciaDCAr i WHERE i.pMoPS = :pMoPS"), @NamedQuery(name = "InformeReferenciaDCAr.findByProctorRef", query = "SELECT i FROM InformeReferenciaDCAr i WHERE i.proctorRef = :proctorRef")})
public class InformeReferenciaDCAr implements Serializable {
    private static final long serialVersionUID = 1L;
    @EmbeddedId
    protected InformeReferenciaDCArPK informeReferenciaDCArPK;
    @Column(name = "DRRef")
    private BigDecimal dRRef;
    @Column(name = "nroSueloInf")
    private Integer nroSueloInf;
    @Column(name = "densidadRelativa")
    private BigDecimal densidadRelativa;
    @Column(name = "PMoPS")
    private BigDecimal pMoPS;
    @Column(name = "proctorRef")
    private BigDecimal proctorRef;

    public InformeReferenciaDCAr() {
    }

    public InformeReferenciaDCAr(InformeReferenciaDCArPK informeReferenciaDCArPK) {
        this.informeReferenciaDCArPK = informeReferenciaDCArPK;
    }

    public InformeReferenciaDCAr(int nroInfReferencia, int id) {
        this.informeReferenciaDCArPK = new InformeReferenciaDCArPK(nroInfReferencia, id);
    }

    public InformeReferenciaDCArPK getInformeReferenciaDCArPK() {
        return informeReferenciaDCArPK;
    }

    public void setInformeReferenciaDCArPK(InformeReferenciaDCArPK informeReferenciaDCArPK) {
        this.informeReferenciaDCArPK = informeReferenciaDCArPK;
    }

    public BigDecimal getDRRef() {
        return dRRef;
    }

    public void setDRRef(BigDecimal dRRef) {
        this.dRRef = dRRef;
    }

    public Integer getNroSueloInf() {
        return nroSueloInf;
    }

    public void setNroSueloInf(Integer nroSueloInf) {
        this.nroSueloInf = nroSueloInf;
    }

    public BigDecimal getDensidadRelativa() {
        return densidadRelativa;
    }

    public void setDensidadRelativa(BigDecimal densidadRelativa) {
        this.densidadRelativa = densidadRelativa;
    }

    public BigDecimal getPMoPS() {
        return pMoPS;
    }

    public void setPMoPS(BigDecimal pMoPS) {
        this.pMoPS = pMoPS;
    }

    public BigDecimal getProctorRef() {
        return proctorRef;
    }

    public void setProctorRef(BigDecimal proctorRef) {
        this.proctorRef = proctorRef;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (informeReferenciaDCArPK != null ? informeReferenciaDCArPK.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof InformeReferenciaDCAr)) {
            return false;
        }
        InformeReferenciaDCAr other = (InformeReferenciaDCAr) object;
        if ((this.informeReferenciaDCArPK == null && other.informeReferenciaDCArPK != null) || (this.informeReferenciaDCArPK != null && !this.informeReferenciaDCArPK.equals(other.informeReferenciaDCArPK))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entidades.InformeReferenciaDCAr[informeReferenciaDCArPK=" + informeReferenciaDCArPK + "]";
    }

}
